300
How do I change the cell's foreground color
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "C1"
		.Columns.Add "C2"
		With .Items
			h = .AddItem("Cell 1")
			.CellValue(h,1) = "Cell 2"
			.CellForeColor(h,1) = RGB(255,0,0)
		End With
	End With
End Function
</SCRIPT>
</BODY>

299
How do I change the visual effect for the cell, using your EBN files
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
		.Columns.Add "C1"
		.Columns.Add "C2"
		With .Items
			h = .AddItem("Cell 1")
			.CellValue(h,1) = "Cell 2"
			.CellBackColor(h,1) = &H1000000
		End With
	End With
End Function
</SCRIPT>
</BODY>

298
How do I change the cell's background color
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "C1"
		.Columns.Add "C2"
		With .Items
			h = .AddItem("Cell 1")
			.CellValue(h,1) = "Cell 2"
			.CellBackColor(h,1) = RGB(255,0,0)
		End With
	End With
End Function
</SCRIPT>
</BODY>

297
How do I change the caption or value for a particular cell
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "C1"
		.Columns.Add "C2"
		With .Items
			.CellValue(.AddItem("Cell 1"),1) = "Cell 2"
		End With
	End With
End Function
</SCRIPT>
</BODY>

296
How do I get the handle of the cell
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			.CellBold(,.ItemCell(h,0)) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

295
How do I retrieve the focused item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			.ItemBold(.FocusItem) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

294
How do I get the number or count of child items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			.AddItem .ChildCount(h)
		End With
	End With
End Function
</SCRIPT>
</BODY>

293
How do I enumerate the visible items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			h = .AddItem("Root 2")
			.ItemBold(.FirstVisibleItem) = True
			.ItemBold(.NextVisibleItem(.FirstVisibleItem)) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

292
How do I enumerate the siblings items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			h = .AddItem("Root 2")
			.ItemBold(.NextSiblingItem(.FirstVisibleItem)) = True
			.ItemBold(.PrevSiblingItem(.NextSiblingItem(.FirstVisibleItem))) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

291
How do I get the parent item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			.ItemBold(.ItemParent(.ItemChild(h))) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

290
How do I get the first child item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			.ItemBold(.ItemChild(h)) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

289
How do I enumerate the root items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			h = .AddItem("Root 2")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ItemBold(.RootItem(0)) = True
			.ItemUnderline(.RootItem(1)) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

288
I have a hierarchy, how can I count the number of root items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root 1")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			h = .AddItem("Root 2")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.AddItem .RootCount
		End With
	End With
End Function
</SCRIPT>
</BODY>

287
How can I make an item unselectable, or not selectable
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Column"
		With .Items
			h = .AddItem("unselectable - you can't get selected")
			.SelectableItem(h) = False
			.AddItem "selectable"
		End With
	End With
End Function
</SCRIPT>
</BODY>

286
How can I hide or show an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Column"
		With .Items
			h = .AddItem("hidden")
			.ItemHeight(h) = 0
			.SelectableItem(h) = False
			.AddItem "visible"
		End With
	End With
End Function
</SCRIPT>
</BODY>

285
How can I change the height for all items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.DefaultItemHeight = 32
		.Columns.Add "Column"
		.Items.AddItem "One"
		.Items.AddItem "Two"
	End With
End Function
</SCRIPT>
</BODY>

284
How do I change the height of an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.ScrollBySingleLine = True
		.Columns.Add "Default"
		With .Items
			.ItemHeight(.AddItem("height")) = 128
		End With
		.Items.AddItem "enabled"
	End With
End Function
</SCRIPT>
</BODY>

283
How do I disable or enable an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.EnableItem(.AddItem("disabled")) = False
		End With
		.Items.AddItem "enabled"
	End With
End Function
</SCRIPT>
</BODY>

282
How do I display as strikeout a cell
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellStrikeOut(.AddItem("strikeout"),0) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

281
How do I display as strikeout a cell or an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellValueFormat(.AddItem("gets <s>strikeout</s> only a portion of text"),0) = 1
		End With
	End With
End Function
</SCRIPT>
</BODY>

280
How do I display as strikeout an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.ItemStrikeOut(.AddItem("strikeout")) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

279
How do I underline a cell
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellUnderline(.AddItem("underline"),0) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

278
How do I underline a cell or an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellValueFormat(.AddItem("gets <u>underline</u> only a portion of text"),0) = 1
		End With
	End With
End Function
</SCRIPT>
</BODY>

277
How do I underline an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.ItemUnderline(.AddItem("underline")) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

276
How do I display as italic a cell
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellItalic(.AddItem("italic"),0) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

275
How do I display as italic a cell or an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellValueFormat(.AddItem("gets <i>italic</i> only a portion of text"),0) = 1
		End With
	End With
End Function
</SCRIPT>
</BODY>

274
How do I display as italic an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.ItemItalic(.AddItem("italic")) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

273
How do I bold a cell
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellBold(.AddItem("bold"),0) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

272
How do I bold a cell or an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.CellValueFormat(.AddItem("gets <b>bold</b> only a portion of text"),0) = 1
		End With
	End With
End Function
</SCRIPT>
</BODY>

271
How do I bold an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.ItemBold(.AddItem("bold")) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

270
How do I change the foreground color for the item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			hC = .InsertItem(h,,"Child 1")
			.ItemForeColor(hC) = RGB(255,0,0)
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

269
How do I change the visual appearance for the item, using your EBN technology

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			hC = .InsertItem(h,,"Child 1")
			.ItemBackColor(hC) = &H1000000
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

268
How do I change the background color for the item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			hC = .InsertItem(h,,"Child 1")
			.ItemBackColor(hC) = RGB(255,0,0)
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

267
How do I expand or collapse an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

266
How do I associate an extra data to an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			.ItemData(.AddItem("item")) = "your extra data"
		End With
	End With
End Function
</SCRIPT>
</BODY>

265
How do I get the number or count of items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
		End With
		With .Items
			.AddItem .ItemCount
		End With
	End With
End Function
</SCRIPT>
</BODY>

264
How can I specify the width of the ActiveX control, when using the InsertControlItem property
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.ScrollBySingleLine = False
		.TreeColumnIndex = 1
		.DrawGridLines = -1
		.Columns.Add "C1"
		.Columns.Add "C2"
		.Columns.Add "C3"
		With .Items
			h = .InsertControlItem(,"MSCAL.Calendar")
			.ItemWidth(h) = 128
			.CellValue(h,0) = "This is a bit of text that is shown in the first column"
			.CellSingleLine(h,0) = False
			.CellValue(h,2) = "This is a bit of text that is shown in the third column"
			.CellSingleLine(h,2) = False
		End With
	End With
End Function
</SCRIPT>
</BODY>

263
How can I put the ActiveX control in a different column, when using the InsertControlItem property
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.ScrollBySingleLine = False
		.DrawGridLines = -1
		.Columns.Add "C1"
		.Columns.Add "C2"
		.Columns.Add "C3"
		With .Items
			h = .InsertControlItem(,"MSCAL.Calendar")
			.CellValue(h,0) = "This is a bit of text that is shown in the first column"
			.CellSingleLine(h,0) = False
			.ItemWidth(h) = -32001
			.CellValue(h,2) = "This is a bit of text that is shown in the third column"
			.CellSingleLine(h,2) = False
		End With
	End With
End Function
</SCRIPT>
</BODY>

262
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		.ScrollBySingleLine = False
		.LinesAtRoot = -1
		With .Items
			h = .InsertControlItem(,"MSCAL.Calendar")
			.InsertItem h,,.ItemControlID(h)
			.ExpandItem(h) = True
			h = .InsertControlItem(,"MSChart20Lib.MSChart")
			.ItemAppearance(h) = 4
			.InsertItem h,,.ItemControlID(h)
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

261
How can I change the height of newly created ActiveX control, using the InsertControlItem
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		.ScrollBySingleLine = False
		With .Items
			.ItemHeight(.InsertControlItem(,"MSCAL.Calendar")) = 64
			.ItemAppearance(.InsertControlItem(,"MSChart20Lib.MSChart")) = 4
		End With
	End With
End Function
</SCRIPT>
</BODY>

260
How can I change the border for newly created ActiveX control, using the InsertControlItem
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		.ScrollBySingleLine = False
		With .Items
			.ItemAppearance(.InsertControlItem(,"MSCAL.Calendar")) = 2
			.ItemAppearance(.InsertControlItem(,"MSChart20Lib.MSChart")) = 4
		End With
	End With
End Function
</SCRIPT>
</BODY>

259
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			With .ItemObject(.InsertControlItem(h,"MSCAL.Calendar"))
				.BackColor = RGB(255,255,255)
				.GridCellEffect = 0
				.ShowTitle = False
				.ShowDateSelectors = False
			End With
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

258
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			With .ItemObject(.InsertControlItem(h,"MSCAL.Calendar"))
				.BackColor = RGB(255,255,255)
			End With
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

257
How can I insert an ActiveX control
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			.InsertControlItem h,"MSCAL.Calendar"
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

256
How can I change at runtime the parent of the item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.LinesAtRoot = -1
		.Columns.Add "Default"
		With .Items
			hP = .AddItem("Root")
			hC = .AddItem("Child")
			.SetParent hC,hP
		End With
	End With
End Function
</SCRIPT>
</BODY>

255
How can I sort the items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
		End With
		.Columns.Item("Default").SortOrder = 2
	End With
End Function
</SCRIPT>
</BODY>

254
How do I sort the child items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		With .Items
			h = .AddItem("Root")
			.InsertItem h,,"Child 1"
			.InsertItem h,,"Child 2"
			.ExpandItem(h) = True
			.SortChildren h,0,False
		End With
	End With
End Function
</SCRIPT>
</BODY>

253
How can I ensure or scroll the control so the item fits the control's client area
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		h = .Items.AddItem("item")
		.Items.EnsureVisibleItem h
	End With
End Function
</SCRIPT>
</BODY>

252
How can I remove or delete all items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		.Items.AddItem "removed item"
		.Items.RemoveAllItems 
	End With
End Function
</SCRIPT>
</BODY>

251
How can I remove or delete an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		h = .Items.AddItem("removed item")
		.Items.RemoveItem h
	End With
End Function
</SCRIPT>
</BODY>

250
How can I add or insert child items
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.LinesAtRoot = -1
		.Columns.Add "C1"
		.Columns.Add "C2"
		With .Items
			h = .AddItem("Cell 1")
			.CellValue(h,1) = "Cell 2"
			.CellValue(.InsertItem(h,,"Cell 3"),1) = "Cell 4"
			.CellValue(.InsertItem(h,,"Cell 5"),1) = "Cell 6"
			.ExpandItem(h) = True
		End With
	End With
End Function
</SCRIPT>
</BODY>

249
How can I add or insert a child item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.LinesAtRoot = -1
		.Columns.Add "Default"
		With .Items
			.InsertItem .AddItem("root"),,"child"
		End With
	End With
End Function
</SCRIPT>
</BODY>

248
How can I add or insert an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "C1"
		.Columns.Add "C2"
		With .Items
			.CellValue(.AddItem("Cell 1"),1) = "Cell 2"
			h = .AddItem("Cell 3")
			.CellValue(h,1) = "Cell 4"
		End With
	End With
End Function
</SCRIPT>
</BODY>

247
How can I add or insert an item
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "Default"
		.Items.AddItem "new item"
	End With
End Function
</SCRIPT>
</BODY>

246
How can I get the columns as they are shown in the control's sortbar
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_Object = .Columns.ItemBySortPosition(0)
	End With
End Function
</SCRIPT>
</BODY>

245
How can I access the properties of a column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "A"
		.Columns.Item("A").HeaderBold = True
	End With
End Function
</SCRIPT>
</BODY>

244
How can I remove all the columns
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Clear 
	End With
End Function
</SCRIPT>
</BODY>

243
How can I remove a column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Remove "A"
	End With
End Function
</SCRIPT>
</BODY>

242
How can I get the number or the count of columns
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		var_Count = .Columns.Count
	End With
End Function
</SCRIPT>
</BODY>

241
How can I change the font for all cells in the entire column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set f = CreateObject("StdFont")
		With f
			.Name = "Tahoma"
			.Size = 12
		End With
		With .ConditionalFormats.Add("1")
			.Font = f
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

240
How can I change the background color for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_ConditionalFormat = .ConditionalFormats.Add("1")
		With var_ConditionalFormat
			.BackColor = RGB(255,0,0)
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

239
How can I change the foreground color for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_ConditionalFormat = .ConditionalFormats.Add("1")
		With var_ConditionalFormat
			.ForeColor = RGB(255,0,0)
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

238
How can I show as strikeout all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_ConditionalFormat = .ConditionalFormats.Add("1")
		With var_ConditionalFormat
			.StrikeOut = True
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

237
How can I underline all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_ConditionalFormat = .ConditionalFormats.Add("1")
		With var_ConditionalFormat
			.Underline = True
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

236
How can I show in italic all data in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_ConditionalFormat = .ConditionalFormats.Add("1")
		With var_ConditionalFormat
			.Italic = True
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

235
How can I bold the entire column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_ConditionalFormat = .ConditionalFormats.Add("1")
		With var_ConditionalFormat
			.Bold = True
			.ApplyTo = 0
		End With
		.Columns.Add "Column"
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

234
How can I display a computed column and highlight some values that are negative or less than a value
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "A"
		.Columns.Add "B"
		.Columns.Add("(A+B)*1.19").ComputedField = "(dbl(%0) + dbl(%1)) * 1.19"
		With .Items
			.CellValue(.AddItem(1),1) = 2
		End With
		With .Items
			.CellValue(.AddItem(10),1) = 20
		End With
		Set var_ConditionalFormat = .ConditionalFormats.Add("dbl(%2) > 10")
		With var_ConditionalFormat
			.Bold = True
			.ForeColor = RGB(255,0,0)
			.ApplyTo = 2 ' &H2
		End With
	End With
End Function
</SCRIPT>
</BODY>

233
Can I display a computed column so it displays the VAT, or SUM
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "A"
		.Columns.Add "B"
		.Columns.Add("(A+B)*1.19").ComputedField = "(dbl(%0) + dbl(%1)) * 1.19"
		With .Items
			.CellValue(.AddItem(1),1) = 2
		End With
		With .Items
			.CellValue(.AddItem(10),1) = 20
		End With
	End With
End Function
</SCRIPT>
</BODY>

232
How can I show a column that adds values in the cells
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "A"
		.Columns.Add "B"
		.Columns.Add("A+B").ComputedField = "dbl(%0) + dbl(%1)"
		With .Items
			.CellValue(.AddItem(1),1) = 2
		End With
		With .Items
			.CellValue(.AddItem(10),1) = 20
		End With
	End With
End Function
</SCRIPT>
</BODY>

231
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_Column = .Columns.Add("Filter")
		With var_Column
			.FilterOnType = True
			.DisplayFilterButton = True
			.AutoSearch = 1
		End With
		.Items.AddItem "Canada"
		.Items.AddItem "USA"
	End With
End Function
</SCRIPT>
</BODY>

230
Is there any function to filter the control's data as I type, something like filter on type
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		Set var_Column = .Columns.Add("Filter")
		With var_Column
			.FilterOnType = True
			.DisplayFilterButton = True
		End With
		.Items.AddItem "Canada"
		.Items.AddItem "USA"
	End With
End Function
</SCRIPT>
</BODY>

229
How can I programmatically filter a column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		With .Columns.Add("Filter")
			.DisplayFilterButton = True
			.FilterType = 2
		End With
		.Items.AddItem 
		.Items.AddItem "not empty"
		.ApplyFilter 
	End With
End Function
</SCRIPT>
</BODY>

228
How can I show or display the control's filter
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Filter").DisplayFilterButton = True
	End With
End Function
</SCRIPT>
</BODY>

227
How can I customize the items being displayed in the drop down filter window
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		With .Columns.Add("Custom Filter")
			.DisplayFilterButton = True
			.DisplayFilterPattern = False
			.CustomFilter = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*." & _
	"txt|*.log"
			.FilterType = 3
			.Filter = "*.xls"
		End With
		.Items.AddItem "excel.xls"
		.Items.AddItem "word.doc"
		.Items.AddItem "pp.pps"
		.Items.AddItem "text.txt"
		.ApplyFilter 
	End With
End Function
</SCRIPT>
</BODY>

226
How can I change the order or the position of the columns in the sort bar
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.SortBarVisible = True
		.SortBarColumnWidth = 48
		.Columns.Add("C1").SortOrder = 1
		.Columns.Add("C2").SortOrder = 2
		.Columns.Item("C2").SortPosition = 0
	End With
End Function
</SCRIPT>
</BODY>

225
How do I arrange my columns on multiple levels
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("S").Width = 32
		.Columns.Add("Level 2").LevelKey = 1
		.Columns.Add("Level 3").LevelKey = 1
		.Columns.Add("Level 4").LevelKey = 1
		.Columns.Add("Level 1").LevelKey = "2"
		.Columns.Add("Level 2").LevelKey = "2"
		.Columns.Add("Level 3").LevelKey = "2"
		.Columns.Add("Level 4").LevelKey = "2"
		.Columns.Add("E").Width = 32
	End With
End Function
</SCRIPT>
</BODY>

224
How do I arrange my columns on multiple lines
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.HeaderHeight = 32
		.Columns.Add("").HTMLCaption = "Line 1<br>Line 2"
	End With
End Function
</SCRIPT>
</BODY>

223
How can I display all cells using HTML format
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("HTML").Def(17) = 1
		.Items.AddItem "<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>."
	End With
End Function
</SCRIPT>
</BODY>

222
How can I display all cells using multiple lines
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("MultipleLine").Def(16) = False
		.Columns.Add("SingleLine").Def(16) = True
		With .Items
			.CellValue(.AddItem("This is a bit of long text that should break the line"),1) = "this is a bit of long text that's displayed on a single line"
		End With
	End With
End Function
</SCRIPT>
</BODY>

221
How do change the vertical alignment for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("MultipleLine").Def(16) = False
		.Columns.Add("VAlign").Def(6) = 2
		With .Items
			.CellValue(.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
		End With
		With .Items
			.CellValue(.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
		End With
	End With
End Function
</SCRIPT>
</BODY>

220
How do change the foreground color for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("ForeColor").Def(5) = 255
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

219
How do change the background color for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("BackColor").Def(4) = 255
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

218
How do I show buttons for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		With .Columns.Add("Button")
			.Def(2) = True
			.Def(3) = True
		End With
		.Items.AddItem " Button 1 "
		.Items.AddItem " Button 2 "
	End With
End Function
</SCRIPT>
</BODY>

217
How do I show buttons for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Button").Def(2) = True
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

216
How do I display radio buttons for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Radio").Def(1) = True
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

215
How do I display checkboxes for all cells in the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Check").Def(0) = True
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

214
How can I display a tooltip when the cursor hovers the column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("tooltip").ToolTip = "This is a bit of text that is shown when user hovers the column."
	End With
End Function
</SCRIPT>
</BODY>

213
Is there any function to assign a key to a column instead using its name or capion
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Data").Key = "DKey"
		.Columns.Item("DKey").Caption = "new caption"
	End With
End Function
</SCRIPT>
</BODY>

212
Is there any function to assign any extra data to a column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Data").Data = "your extra data"
	End With
End Function
</SCRIPT>
</BODY>

211
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Sort").DefaultSortOrder = True
	End With
End Function
</SCRIPT>
</BODY>

210
How can I specify the maximum width for the column, if I use WidthAutoResize property
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		With .Columns.Add("Auto")
			.WidthAutoResize = True
			.MinWidthAutoResize = 32
			.MaxWidthAutoResize = 128
		End With
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

209
How can I specify the minimum width for the column, if I use WidthAutoResize property
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		With .Columns.Add("Auto")
			.WidthAutoResize = True
			.MinWidthAutoResize = 32
		End With
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

208
Is there any option to resize the column based on its data, captions
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("A").WidthAutoResize = True
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>

207
How can I align the icon in the column's header in the center
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
		With .Columns.Add("")
			.HeaderImage = 1
			.HeaderImageAlignment = 1
		End With
	End With
End Function
</SCRIPT>
</BODY>

206
How do I align the icon in the column's header to the right
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
		With .Columns.Add("ColumnName")
			.HeaderImage = 1
			.HeaderImageAlignment = 2
		End With
	End With
End Function
</SCRIPT>
</BODY>

205
How do I show or hide the sorting icons, but still need sorting
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Sorted").SortOrder = 1
		.Columns.Item(0).DisplaySortIcon = False
	End With
End Function
</SCRIPT>
</BODY>

204
How do I enable or disable the entire column
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add "C1"
		.Columns.Add("Disabled").Enabled = False
		With .Items
			.CellValue(.AddItem(0),1) = "0.1"
		End With
		With .Items
			.CellValue(.AddItem(1),1) = "1.1"
		End With
	End With
End Function
</SCRIPT>
</BODY>

203
How do I disable drag and drop columns
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("C1").AllowDragging = False
		.Columns.Add("C2").AllowDragging = False
	End With
End Function
</SCRIPT>
</BODY>

202
How do I disable resizing a column at runtime
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		.Columns.Add("Unsizable").AllowSizing = False
		.Columns.Add "C2"
		.Columns.Add "C3"
		.Columns.Add "C4"
	End With
End Function
</SCRIPT>
</BODY>

201
How can I align the column to the right, and its caption too
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With G2antt1
		With .Columns.Add("Column")
			.Alignment = 2
			.HeaderAlignment = 2
		End With
		.Items.AddItem 0
		.Items.AddItem 1
	End With
End Function
</SCRIPT>
</BODY>